import { docsearchPlugin } from '@vuepress/plugin-docsearch'
import { defaultTheme } from '@vuepress/theme-default'
export default {
    head: [
        ['link', { rel: 'icon', href: '/logo.png' }]
        // ,['script', { src: '/manger-change.js' }]
    ],
    title: '音念的教学笔记',
    charset: 'utf-8',
    lang: "zh-CN",
    dest: `./document`,
    // base:'/teaching/',
    theme: defaultTheme({
        // Public 文件路径
        logo: '/logo.png',
        sidebar: [
            {
                title: '计算机基础',
                path: '/computer/',
                children: [
                    '',
                    'c01c01',
                    'c01c02',
                    'c01c03',
                    'c01c04',
                    'c02c01',
                    'c02c02',
                    'c02c03',
                    'c03c01',
                    'c03c02',
                    'c03c03',
                    'c04c01',
                    'c04c02',
                    'c04c03',
                    'c05c01',
                    'c05c02',
                    'c05c03',
                    'c06c01',
                    'c06c02',
                ]
            },
            {
                title: 'web前端开发基础',
                path: '/web/',
                children: [
                    '',
                    'c07c01',
                    'c07c02',
                    'c08c01',
                    'c08c02',
                    'c09c01',
                    'c09c02'
                ]
            }
        ]
    }),
    plugins: [
        docsearchPlugin({
            appId: '<APP_ID>',
            apiKey: '<API_KEY>',
            indexName: '<INDEX_NAME>',
            locales: {
                '/': {
                    placeholder: '搜索文档',
                    translations: {
                        button: {
                            buttonText: '全文搜索',
                        },
                    },
                },
            },
        })
    ],
}